package com.feng.study.demo.springSSM;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Service;

@Service
public class SpringDemo {
    public static void main(String[] args) {
        //获取ioc容器
        ApplicationContext context=new ClassPathXmlApplicationContext(".xml");
        ClassPathXmlApplicationContext classPathXmlApplicationContext=new ClassPathXmlApplicationContext(".xml");
        //从容器中拿对象
        Object bean = context.getBean("");

    }
}
